import service from "../utils/request";

// 1.删除当前用户的购物车数据
export function cart_removeall(payload={}) {
    return service.post('/api/cart/removeall',  payload)
}
// 2.删除购物车单条数据
export function cart_remove(payload={}) {
    return service.post('/api/cart/remove',  payload)
}
// 3.加入购物车
export function cart_add(payload={}) {
    return service.post('/api/cart/add',  payload)
}
// 4.更新当前购物车数据的选中状态
export function cart_selectone(payload={}) {
    return service.post('/api/cart/selectone',  payload)
}
// 5.更新所有购物车数据的选中状态
export function cart_selectall(payload={}) {
    return service.post('/api/cart/selectall',  payload)
}
// 6.更新购物车数量
export function cart_updatenum(payload={}) {
    return service.post('/api/cart/updatenum',  payload)
}
// 7.导航区域
export function cart_list(payload={}) {
    return service.post('/api/cart/list',  payload)
}